package com.worklog.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@NoArgsConstructor
@Table(name = "menu")
public class Menu implements Serializable{

	private static final long serialVersionUID = 1224395258140807956L;
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer value;

	@Column(name = "name")
    private String name;
	
	@Column(name = "url")
    private String url;

	@Column(name = "productid")
    private int productid;

	@Column(name = "description")
    private String description;
	
	@Column(name = "sort")
    private int sort;
    
	@Column(name = "create_time")
    private Timestamp createTime;
    
    @Column(name = "update_time")
    private Timestamp updateTime;
    
    @Column(name = "icon")
    private Timestamp icon;
}